﻿using CalendarMod.Views;
using DemoPrism.Core;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Navigation.Regions;

namespace CalendarMod;
public class CalendarModModule : IModule
{
    private readonly IRegionManager _regionManager;

    public CalendarModModule(IRegionManager regionManager)
    {
        _regionManager = regionManager;
    }

    public void OnInitialized(IContainerProvider containerProvider)
    {
        _regionManager.RequestNavigate(RegionNames.ContentRegion, "CalendarMain");
    }

    public void RegisterTypes(IContainerRegistry containerRegistry)
    {
        containerRegistry.RegisterForNavigation<CalendarMain>();
    }

}